package health

import (
	v1 "gitcode.com/G-YT/ANN/server/api/v1"
	"github.com/gin-gonic/gin"
)

type CircleRouter struct {
}

func (c *CircleRouter) InitCircleRouter(Router *gin.RouterGroup) {
	circleRouter := Router.Group("circle")
	circleApi := v1.ApiGroupApp.HealthApiGroup.CircleApi
	{
		circleRouter.GET("getTopicList", toPicApi.GetAppTopicList)                      // 获取话题列表
		circleRouter.POST("publish", circleApi.Publish)                                 // 发健康圈
		circleRouter.POST("comment", circleApi.Comment)                                 // 评论&回复
		circleRouter.POST("getCircleList", circleApi.GetCircleList)                     // 获取健康圈列表
		circleRouter.GET("getHealthCircleList", circleApi.GetHealthCircleList)          // 获取健康圈列表【管理端】
		circleRouter.GET("findCircleInfo", circleApi.FindCircleInfo)                    // 获取健康圈详情
		circleRouter.POST("getCircleCommentsList", circleApi.GetCircleCommentsInfoList) // 获取健康圈评论列表
		circleRouter.GET("getCommentsList", circleApi.GetCircleCommentsList)            // 获取评论列表【管理端】
		circleRouter.POST("reportCircle", circleApi.ReportCircle)                       // 举报健康圈
		circleRouter.GET("like", circleApi.CircleLike)                                  // 健康圈点赞
		circleRouter.DELETE("deleteCircle", circleApi.DeleteCircle)                     // 删除健康圈【管理端】
		circleRouter.DELETE("deleteComment", circleApi.DeleteComment)                   // 删除评论【管理端】
	}
}
